package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

//增加注释 @Data 由
@Data
@TableName("tb_teacher")
public class Teacher {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("no")
    private String no;

    @TableField("college_id")
    private Integer CollegeId;

    @TableField(exist = false)
    private String collegeName;//教师所在学院名称
}
